#ifndef _FMODSound_CPP_
#define _FMODSound_CPP_

#include "FMODSound.h"
#include "FMODError.h"

void FMODSound::play()
{
    FMODError::eval(FMOD_System_PlaySound(this->fmod_system, FMOD_CHANNEL_FREE, this->fmod_sound, false, &this->fmod_channel));
}

void FMODSound::setFrequency(float freq)
{
    FMODError::eval(FMOD_Channel_SetFrequency(this->fmod_channel, freq));
}

float FMODSound::getFrequency()
{
    float freq = 0;

    FMODError::eval(FMOD_Channel_GetFrequency(this->fmod_channel, &freq));

    return freq;
}


#endif
